POV-Ray : Newsgroups : povray.newusers : layered textures and csg : layered textures and csg Server Time
29 Jul 2024 20:24:30 EDT (-0400)
  layered textures and csg  
From: blenderhead
Date: 2 Apr 2005 13:20:01
Message: <web.424ee1aeef5fde29dfc8659d0@news.povray.org>
Hello everybody!

I use CSG to build a wall of bricks. It is a union of a box with a mortar
texture and some stones. Each of these sub-objects has is own texture but
now I want to have some kind of paiting on it. The following doesn't work:

object {
 union {
  box {
   <wall_left+0.0001, wall_bottom+0.0001, -0.24>
   <wall_right-0.0001, wall_top-0.0001, 0.24>
   texture {
    Mortar_Tex
   }
  }

  //stone loop, each stone has is own texture
 }

 texture {                //stupid texture, I know... 8-/
  pigment {
   gradient y
   color_map {
    [0.0 color White filter 1]
    [1.0 color Blue]
   }
   scale 5
  }
 }
}

So why doesn't it work? Is there a simple way to do that?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.